<#assign tit><#if _oper='add'>新增<#else>修改</#if>菜单</#assign>
<div>
  <!--div class="search">
    <dl>
      <dt>${tit}</dt>
      <dd class="oper"><a class="back" href="javascript:backList();">返回</a></dd>
    </dl>
  </div-->

  <form id="fm_input" method="post" action="<#if _oper='add'>_add<#else>_edit</#if>" onsubmit="return post2(this);">
    <input type="hidden" name="parentId" value="${menu.parentId!}">
    <div class="kbox">
      <table class="input">
        <tr>
          <th width="25%">菜单Id</th>
          <td width="75%"><#if _oper='add'><input type="text" name="menuId" value="${menu.menuId!}" req="菜单Id" size="12" maxlength="8"><span class="require">*</span><#else>${menu.menuId!}<input type="hidden" name="menuId" value="${menu.menuId!}"></#if></td>
        </tr>
        <tr>
          <th>菜单名称</th>
          <td><input type="text" name="menuName" value="${menu.menuName!}" req="菜单名称" size="28" maxlength="30"><span class="require">*</span></td>
        </tr>
        <tr>
          <th>链接地址</th>
          <td><input type="text" name="linkUrl" value="${menu.linkUrl!}" size="32" maxlength="40"></td>
        </tr>
        <tr>
          <th>模块代码</th>
          <td><input type="text" name="codeName" value="${menu.codeName!}" size="24" maxlength="30"></td>
        </tr>
        <tr>
          <th>操作</th>
          <td><input type="checkbox" name="operates" value="1" checked style="display:none;">${menu.operateHtml!}</td>
        </tr>
        <tr>
          <th>其他操作</th>
          <td><input type="text" name="operateEx" value="${menu.operateEx!}" size="32"></td>
        </tr>
        <tr>
          <th>菜单显示</th>
          <td><input type="checkbox" name="menuShows" id="show_1" value="1"<#if menu.menuShow=1 || menu.menuShow=3> checked</#if>><label for="show_1">门店</label>
            <input type="checkbox" name="menuShows" id="show_2" value="2"<#if menu.menuShow=2 || menu.menuShow=3> checked</#if>><label for="show_2">总部</label></td>
        </tr>
        <tr>
          <th>排序</th>
          <td><input type="text" name="sort" value="${menu.sort!}" req="排序号" vtp="int" size="5" maxlength="4"></td>
        </tr>
        <tr>
          <th>常用功能</th>
          <td><input type="text" name="shortcut" value="${menu.shortcut!}" req="常用功能" vtp="int" size="5" maxlength="4"></td>
        </tr>
        <tr>
          <th>上级菜单</th>
          <td>${pname!}</td>
        </tr>
      </table>
    </div>
    <div class="button"><input type="submit" value="提 交"></div>
  </form>
</div>
